package jgl.vajra.driver.widget.push;

import android.content.Intent;
import android.os.Bundle;

import com.orhanobut.logger.Logger;

import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentActivity;

public class OpenClickActivity extends FragmentActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // 进行处理点击通知栏推送消息
        Intent intent = getIntent();
        Logger.e("OpenClickActivity " + intent.getStringExtra("n_extras"));
        JPushManager.getInstance().handlerPushOp(this, intent);
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        // 进行处理点击通知栏推送消息`
        setIntent(intent);
        Logger.e("OpenClickActivity " + intent.getStringExtra("n_extras"));
        JPushManager.getInstance().handlerPushOp(this, intent);
    }
}
